package edu.ncst.baseweb.dao.equ;

import edu.ncst.baseweb.common.RequestPage;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "equ")
public class Equ extends RequestPage {

    @TableId
    private Integer id;
    //设备编号
    @TableField(value = "equ_code")
    private String equCode;
    //设备名称
    @TableField(value="name")
    private String name;
    //设备类型编码
    @TableField(value = "class_id")
    private int classId;
    //生产厂商
    @TableField(value = "manufacturer")
    private String manufacturer;
    //制造日期
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @TableField(value = "date")
    private Date date;
    //存放地点
    @TableField(value = "place")
    private String place;
    //状态
    @TableField(value = "state")
    private String state;
    //规格型号
    @TableField(value = "specification")
    private String specification;
    //技术参数
    @TableField(value = "tparameter")
    private String tparameter;
    //标定参数
    @TableField(value = "cparameter")
    private String cparameter;

    //报废状态
    @TableField(value = "scrap")
    private Integer scrap;
    //报废时间
    @TableField(value = "scrap_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date scrapTime;
    //图片名称
    @TableField(value = "image_name")
    private String imageName;
    //图片路径
    @TableField(value = "image_url")
    private String imageUrl;
    //视频名称
    @TableField(value = "video_name")
    private String videoName;
    //视频路径
    @TableField(value = "video_url")
    private String videoUrl;
    //文件名称
    @TableField(value = "file_name")
    private String fileName;
    //文件路径
    @TableField(value = "file_url")
    private String fileUrl;
    //备注
    @TableField(value = "notes")
    private String notes;

    public static final String COL_NAME = "name";

    public static final String COL_STATE = "state";

    public static final String COL_SCRAP = "scrap";

    public static final String COL_EQUCODE = "equ_code";
    //设备类型名称
    private transient String className;

    //借用预计结束时间
    private transient Date etime;
    //借用理由
    private transient String text;





}
